package ua.epam.muzalevskiy.traction.user;

/**
 * Current class describe user of web application with administrator rights.
 *
 * @author Muzalevskiy Vitaliy
 */
public class Administrator extends User {
    /** Value that describe type of user*/
    private static final String USER_TYPE = "ADMIN";

    /**
     * @return the USER_TUPE
     */
    public String getUserType() {
        return USER_TYPE;
    }
    
    /** Real name of administrator.*/
    private String realName;
    /** Last name of administrator.*/
    private String lastname;

    public Administrator(int id, String name, String password, String email,
            String realName, String lastname) {
        super(id, name, password, email);
        this.realName = realName;
        this.lastname = lastname;
    }

    /**
     * @return the realName
     */
    public String getRealName() {
        return realName;
    }

    /**
     * @return the lastname
     */
    public String getLastname() {
        return lastname;
    }
    
    @Override
    public String toString() {
        return "[" + "name=" + name + ", password=" + password + ", email=" 
                + email + ", realName=" + realName + ", lastname=" + lastname + ']';
    }
    
}
